/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconStar: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M362.432 325.696l-271.616 38.4-3.52 0.672c-23.04 5.824-31.488 34.464-13.824 51.232l196.544 186.4-46.4 263.2-0.384 3.36c-1.536 23.168 23.904 39.936 45.824 28.736L512 773.44l242.944 124.256 3.168 1.408c22.176 8.608 46.432-9.76 42.24-33.504l-46.4-263.2L950.528 416l2.432-2.56c15.104-17.92 4.672-45.888-19.776-49.344l-271.68-38.4-121.44-239.456c-11.488-22.656-44.64-22.656-56.128 0l-121.504 239.456zM512 172.096l101.44 196.48 1.92 3.2a31.68 31.68 0 0 0 21.824 13.312l226.816 31.488-164.128 152.96-2.592 2.72a29.152 29.152 0 0 0-6.464 23.936l38.72 215.904-202.88-101.92-3.52-1.536a32.832 32.832 0 0 0-25.792 1.536l-202.88 101.92 38.72-215.904 0.416-3.68a29.44 29.44 0 0 0-9.472-23.008l-164.16-152.928 226.88-31.488a31.456 31.456 0 0 0 23.68-16.48L512 172.128z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconStar.defaultProps = {
  size: 18,
};

export default IconStar;
